package org.r13notes.notes;

import java.util.Date;

/**
 * 
 * @author Lukasz Raczko
 *
 * Class that contains one note, as well as information about it. The date when it was created/modified and priority.
 * Both used in sorting and managing display in R13notesActivity, and R13notesWidget.
 */

public class Note {
	private String note;
	private int priority;
	private Date date;
	private int id;
	
	// TODO remove in future
	public Note(String note){
		this.note = note;
	}
	
	public Note(String note, int priority){
		this.note = note;
		this.priority = priority;
		this.date = new Date();
	}
	
	public Note(String note, int priority, Date date, int id){
		this.note = note;
		this.priority = priority;
		this.date = date;
		this.id = id;
	}
	
	public void setPriority(int priority){
		this.priority = priority;
	}
	
	public void setNote(String note){
		this.note = note;
	}
	
	public String getNote(){
		return this.note;
	}
	
	public int getPriority(){
		return this.priority;
	}
	
	public Date getDate(){
		return this.date;
	}	
}
